/*
 * OPIAM Suite
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package opiam.admin.faare.config.javabeans;

import java.io.Serializable;

/**
 * Class corresponding to the "viewdef_profile" element of views.xml.<br>
 * This is a profile which can see the view.
 */
public class JBViewDefProfile implements Serializable
{
    /** Profile name. */
    private String name;

    /** Creates new JBViewDef. */
    public JBViewDefProfile()
    {
    }

    /**
     * Returns the profile name.
     * @return name
     */
    public String getName()
    {
        return name;
    }

    /**
     * Sets the profile name.
     * @param aname The name to set
     */
    public void setName(String aname)
    {
        this.name = aname;
    }

    /**
     * Displays the object.
     *
     * @return object
     */
    @Override
	public String toString()
    {
        StringBuffer buf = new StringBuffer();

        buf.append("   name = ");
        buf.append(name);
        buf.append(System.getProperty("line.separator"));

        return buf.toString();
    }

    // end of toString method
}
